import request from '@/utils/request'

export function getMySubjectList(data) {
  return request({
    url: "/api/course/TemsSubject/getMySubjectList",
    method: "post",
    data:{
      sort: "desc",
      sidx:'',
      ...data,
    },
  });
}

// 证书获取提交
export function temsCertUserSimple(data) {
  return request({
    url: "/api/course/TemsCertUserSimple",
    method: "post",
    data
  });
}

// 查询证书信息
export function certRecordInfo(resourceId) {
	return request({
		url: `/api/course/TemsCertUserSimple/getByReourceId/${resourceId}`,
		method: "get",
		data: {
			resourceId
		}
	})
}
